package com.biostime.springdraw.modules.sd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.springdraw.common.mybatis.MyBatisDao;
import com.biostime.springdraw.common.persistence.CrudDao;
import com.biostime.springdraw.modules.sd.entity.Section;


/**
 * 奖品阶段表Dao
 * @author king
 * @version 2016-01-18
 */
@MyBatisDao
public interface SectionDao extends CrudDao<Section> {
	
	/**
	 * 寻找一个section集合  根据名称
	 * @param section
	 * @return
	 */
	public List<Section> findListByName(Section section);
	
	
	/**
	 * 寻找一个section 根据名称
	 * @param section
	 * @return
	 */
	public Section getByName(Section section);
	
	/**
	 * 判定时间是否有交叉
	 * @param section
	 * @return
	 */
	public List<Section> betweenDate(Section section);
	
	/**
	 * 批量插
	 * @param section
	 * @return
	 */	
	public void insertSections(List<Section> sectionList);
	
	
	public int test(@Param("a")int a, @Param("b")int b);
}